package com.by.aop;

import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.util.Date;

public class User {

    private Integer id;
    private String username;
    //@DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birtyDay;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getBirtyDay() {
        return birtyDay;
    }

    public void setBirtyDay(Date birtyDay) {
        this.birtyDay = birtyDay;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", birtyDay=" + birtyDay +
                '}';
    }
}
